<div>批量修改</div>
<div id="tip_batchEditCnf" style="color: red" ></div>

<form id="form_batchEditCnf">
	<table id="table_cnf">
		<tr align="center">
			<td>类型<span style="color: red">*</span></td>
			<td>键<span style="color: red">*</span></td>
			<td>值</td>
			<td>排序</td>
			<td>备注</td>
			<td>是否有效</td>
		</tr>
	@foreach ($cnf_list as $cnf)
		<tr align="center">
			<td><input type="text" id="type{{$cnf->id}}" name="type[]" value="{{$cnf->type}}" /></td>
			<td><input type="text" id="k{{$cnf->id}}" name="k[]"value="{{$cnf->k}}" /></td>
			<td><input type="text" id="v{{$cnf->id}}" name="v[]" value="{{$cnf->v}}" /></td>
			<td><input type="text" id="idx{{$cnf->id}}" name="idx[]" value="{{$cnf->idx}}" /></td>
			<td><input type="text" id="remark{{$cnf->id}}" name="remark[]" value="{{$cnf->remark}}" /></td>
			<td><select id="enable{{$cnf->id}}" name="enable[]">
				<option value="1" {{ $cnf->enable ? 'selected="selected"' : '' }}>是</option>
				<option value="0" {{ !$cnf->enable ? 'selected="selected"' : '' }}>否</option>
			</select></td>
			<input type="hidden" id="id{{$cnf->id}}" name="id[]" value="{{$cnf->id}}" />
		</tr>
	@endforeach
	</table>
</form>

<div>
	<button type="submit" id="btn_doBatchEditCnf">保存</button>
	<button type="submit" id="btn_back">返回</button>
</div>


<script src="/js/vendor/jquery.min.js"></script>
<script src="/js/Cnf/batchEditCnf.js"></script>